<template>
    <div class="big-wp">
        <div class="search-wp">
            <div class="go-back">
                <router-link to="/">
                    <i class="iconfont icon-return"></i>
                </router-link>
            </div>
            <div class="search-inpt">
                <input type="text" placeholder="搜索" v-model="searchInpt">
                <i class="iconfont icon-search" @click="searchFn"></i>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    data(){
        return {
            searchInpt:''
        }
    },
    methods:{
        searchFn(){
            this.$router.push({name:'searchClassDetail',params:{inp:this.searchInpt}})
        }
    }
}
</script>

<style scoped>
.big-wp{
    position: fixed;
    top: 0;
    bottom: 0;
    width: 100%;
    background: #fff;
}
.search-wp{
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}
.search-wp .go-back{
    width: 30px;
    height: 35px;
    margin-right: 14px;
}
.search-wp .go-back i{
    font-size: 24px;
    color: #a9aaac;
    position: relative;
    top: 3px;
    left: 6px;
}
.search-inpt{
    margin-right: 15px;
    width: 100%;
    position: relative;
}
.search-inpt input{
    outline: none;
    height: 30px;
    width: 100%;
    text-indent: 10px;
    border: solid 1px #bfbfbf;
    border-radius: 2px;
    font-size: 14px;
}
.search-inpt .icon-search{
    position: absolute;
    top: 2px;
    right: 2px;
    left: auto;
    font-size: 26px;
    color: #666;
}
</style>
